package com.mall.user.domain.model;

public record StoreId(Long id) {
    public StoreId {
        //店铺编号最小值为1
        if (id < 1) {
            throw new IllegalArgumentException("店铺编号最小值为1");
        }
    }

    public static StoreId of(Long id) {
        return new StoreId(id);
    }
}
